#ifndef EditConfigDlg_H
#define EditConfigDlg_H

#include "Entity/DictData.h"
#include "Entity/SysConfig.h"
#include "api/systemManager/paramssetapi.h"
#include <QDialog>
#include <QList>

namespace Ui {
class EditConfigDlg;
}

class EditConfigDlg : public QDialog
{
    Q_OBJECT

public:
    explicit EditConfigDlg(QString id,QList<DictData> dictList,QWidget *parent = nullptr);
    ~EditConfigDlg();

private slots:
    void on_btn_cancel_clicked();
    void on_btn_ok_clicked();

signals:
    void success();

private:
    Ui::EditConfigDlg *ui;
    QString id;
    QList<DictData> dictList;
    ParamsSetApi paramsSetApi;
    SysConfig *config;
    QNetworkReply *r;

    void init();
};

#endif // EditConfigDlg_H
